The default website set up by IIS
isn’t much to look at. That’s okay because a bit later you’ll be adding
plenty of your own content to the site. For now, the simplicity of the
site is an advantage because it makes it easy for you to look around and
see how the default site is constructed. This will help you down the
road to customize the site and to add your own content.
Viewing the Default Website Folder
Let’s begin by examining the folder that holds the website content:
1. | Select Start, Computer to open the computer window.
|
2. | Double-click the hard drive on which Windows 7 is installed.
Tip
The Windows 7 hard
drive is usually the C: drive. If you’re not sure, look for the drive
icon that has the Windows flag superimposed on it. You may need to pull
down the Views menu and select Large Icons or Tiles to see the flag.
|
3. | Open the inetpub folder.
|
4. | Open the wwwroot subfolder.
|
The wwwroot folder holds the IIS default website files, as shown in Figure 1.
The wwwroot folder has one subfolder (aspnet_client, which you can ignore) and two files:
iisstart.htm | This file contains the code that is used to display the home page . |
welcome.png | This file is the IIS7 image that you see in the home page. |
Viewing the Default Website with IIS Manager
The wwwroot
folder enables you to examine the physical files and subfolders
associated with the IIS default website. However, you probably won’t
often deal with the wwwroot folder
(or any folder) directly when creating and configuring your own web
pages and websites. Instead, you’ll most often use a Microsoft
Management Console snap-in called the IIS Manager.
To display this snap-in and the default IIS website, follow these steps:
1. | Select Start, type iis, and then select IIS Manager in the search results. The Internet Information Services (IIS) Manager window appears.
|
2. | Open the Computer branch (where Computer is the name of your Windows 7 PC).
|
3. | Open the Sites branch.
|
4. | Select the Default Web Site branch.
|
IIS Manager gives you two ways to view the website files:
Click the Content View button to see the site contents. As you can see in Figure 2, you see the same subfolder and files as you saw earlier (see Figure 28.7) when you examined the contents of the wwwroot folder.
Click Features View to see a collection of icons associated with the site’s features, as shown in Figure 3. Most of these are advanced features, so you’ll be using only a small subset of them.
Tip
You can also use IIS Manager to open the website in your default web browser. In IIS Manager, open the Computer, Sites branch (where Computer
is the name of the computer running IIS), select Default Web Site, and
then click Browse in the Actions pane. (You can also right-click Default
Web Site, and then select Manage Web Site, Browse in the shortcut
menu.)